package thread;

import java.awt.*;

public class demo6 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(()->{
           while (true) {

           }
        });
        System.out.println(t.getState());
        t.start();
        System.out.println(t.getState());
    }
}
